import {Entity, PrimaryGeneratedColumn, Column, BaseEntity, CreateDateColumn} from "typeorm";

@Entity()
export class Order extends BaseEntity{
    @PrimaryGeneratedColumn()
    id: number;

    @Column({type:"varchar",length:64,unique:true})
    orrderCode: string;
    @Column({type:"varchar",length:64})
    userid: string;

    @Column({type:"varchar",length:64,comment:"订单状态:[doing,fin]"})
    status: string;

    @CreateDateColumn()
    createtime: Date;

    @CreateDateColumn()
    updatetime: Date;

}